<script type="text/javascript">
function check_edit_form()
{
	display('&nbsp;','alert_user_name');
	display('&nbsp;','alert_user_password');
	display('&nbsp;','alert_confirm_password');
	
	var frm_name=document.getElementById("frm_user_edit");
	var aCheck = new Array(); 
 	aCheck.push ( new Array('admin_username', 1, 200, "{TEXT.input_user_name}", false, false, 'alert_user_name') );
	var bRes = validateFields(aCheck);
	if(!bRes)
	{
		
	}
	else
	{			
		if(document.getElementById('admin_password').value!=document.getElementById('administrator_password_confirm').value)
		{
			display('{TEXT.not_match_password}','alert_confirm_password');
			return;
		}
		else
		{
			frm_name.submit();
		}
	}		
}
</script>
<div style="background: #9ca923; height: 2px;"></div>
<div style="height: 23px;"></div>

<form name="frm_user_edit" id="frm_user_edit" action="" method="post" enctype="multipart/form-data">
<input type="hidden" name="sAction" value="do_edit" /> 
<input type="hidden" name="id" value="{admin_id}"/>
<table class="adminform" >
  <tr>
    <th colspan="2" scope="col">&nbsp;</th>
    </tr>
  <tr>
    <td width="150">{MANAGER.username}<span class="require">*</span>:</td>
    <td>
		<input type="text" class="txtbox" name="admin_username" id="admin_username" value="{admin_username}" />
		<span id="alert_user_name" class="error">&nbsp;</span>
	</td>
  </tr>
  <tr>
    <td>{MANAGER.new_password}<span class="require">*</span>:<br /><span style="float:left" class="note">{MANAGER.password_nochange_msg}</span></td>
    <td>
		<input type="password" name="admin_password" id="admin_password" class="txtbox" value="" />
		<span id="alert_user_password" class="error">&nbsp;</span>
	</td>
  </tr>
  <tr>
    <td>{MANAGER.password_confirm}<span class="require">*</span>:</td>
    <td>
		<input type="password" name="administrator_password_confirm" id="administrator_password_confirm" class="txtbox" value=""/>
		<span id="alert_confirm_password" class="error">&nbsp;</span>
	</td>
  </tr>
  <tr>
    <td>{MANAGER.fullname} :</td>
    <td><input type="text" name="admin_fullname" id="admin_fullname" value="{admin_fullname}" class="txtbox" /></td>
  </tr>
  <tr>
    <td>{MANAGER.email} :</td>
    <td><input type="text" name="admin_email" id="admin_email" value="{admin_email}" class="txtbox" /></td>
  </tr>
  
  <tr>
    <td>{MANAGER.phone} :</td>
    <td><input type="text" name="admin_phone" id="admin_phone" value="{admin_phone}" class="txtbox" /></td>
  </tr>
  <tr>
    <td>{MANAGER.status} :</td>
    <td><input type="checkbox" name="admin_status" {admin_status} /> {FORM.active}</td>
  </tr>
  <tr>
    <td>{MANAGER.role} :</td>
    <td><select name="admin_role">
    	<option value="1" {admin_role_1} >{TEXT.admin}</option>
		<option value="2" {admin_role_2} >Staff</option>
		</select>
	</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>

</form>